package com.bd.rj.frontstage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bd.rj.common.entity.Interview;
import com.bd.rj.frontstage.mapper.InterviewMapper;
import com.bd.rj.frontstage.service.IInterviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 白世俊
 * @since 2025-01-03
 */
@Service
public class InterviewServiceImpl extends ServiceImpl<InterviewMapper, Interview> implements IInterviewService {

    @Autowired
    private InterviewMapper interviewMapper;
    @Override
    public List<Map<String, Object>> getInterviewById(Long uid, Integer status) {
        return interviewMapper.getviewById(uid,status);
    }

    @Override
    public List<Map<String, Object>> getEnameByUid(Long uid) {
        return interviewMapper.getEnameByUid(uid);
    }

    @Override
    public List<Map<String, Object>> getviewByEname(String ename) {
        return interviewMapper.getviewByEname(ename);
    }
}
